/*
 * NativeFileIncludes.java  0.4.0 / Nov 6, 2010
 *
 * Copyright (c) 2010 - 2011, cute4j.com and contributors.
 *
 * This software is licensed under the LGPL version 2.1 license.
 * A copy of this license is included in the file LICENSE-LGPL.txt.
 */
package com.cute4j.tools.ng.delegate;

import com.cute4j.tools.ng.AbstractNativeFile;
import com.cute4j.tools.ng.NativeFileText;
import com.cute4j.tools.ng.NativeGenerator;

/**
 * Native File Includes.
 *
 * @author Slobodan Vrkacevic
 * @version 0.4.0
 */
class NativeFileIncludes extends NativeFileText {

// Public Constructors. --------------------------------------------------------

  /**
   * Constructs new NativeFileIncludes object.
   *
   * @param nativeFile the native file
   */
  public NativeFileIncludes(AbstractNativeFile nativeFile) {
    super(nativeFile, "");
  }

  /**
   * Constructs new NativeFileIncludes object.
   *
   * @param nativeFile the native file
   * @param content header's content
   */
  public NativeFileIncludes(AbstractNativeFile nativeFile, String content) {
    super(nativeFile, content);
  }

// Public Methods. -------------------------------------------------------------

  /**
   * Adds standard header.
   *
   * @param header the header
   */
  public void addStandardHeader(String header) {
    setText(getText() + "#include <" + header + ">" +
            NativeGenerator.getInstance().getNewLine());
  }

  /**
   * Adds custom header.
   *
   * @param header the header
   */
  public void addLocalHeader(String header) {
    setText(getText() + "#include \"" + header + "\"" +
            NativeGenerator.getInstance().getNewLine());
  }

  /**
   * Adds new line.
   */
  public void addNewLine() {
    setText(getText() + NativeGenerator.getInstance().getNewLine());
  }

}
